# import logging
# import datetime
# import logging.handlers
#
# logger = logging.getLogger('mylogger')
# logger.setLevel(logging.DEBUG)
#
# rf_handle = logging.handlers.TimedRotatingFileHandler('all.log', when='midnight',interval=1, backupCount=7,atTime=datetime.time(0,0,0,0))
# rf_handle.setFormatter(logging.Formatter('%(asctime)s-%(levelname)s-%(message)s'))
#
# f_handle = logging.FileHandler('error.log')
# f_handle.setLevel(logging.ERROR)
# f_handle.setFormatter(logging.Formatter('%(asctime)s-%(levelname)s-%(filename)s[:%(lineno)d]-%(message)s'))
#
# logger.addHandler(rf_handle)
# logger.addHandler(f_handle)
#
# logger.critical('critical message')
# logger.warning('warning message')
# logger.info('info message')
# logger.debug('debug message')
# logger.error('error message')

from util import util

l = util.get_logger()
l.critical('ss')
l.warning('warning message')
l.info('info message')
l.debug('debug message')
l.error('error message')